/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class DiagnosticoCriteria extends AbstractORMCriteria {
	public final IntegerExpression di_id_diagnostico;
	public final StringExpression descripcion;
	public final DateExpression fecha;
	
	public DiagnosticoCriteria(Criteria criteria) {
		super(criteria);
		di_id_diagnostico = new IntegerExpression("di_id_diagnostico", this);
		descripcion = new StringExpression("descripcion", this);
		fecha = new DateExpression("fecha", this);
	}
	
	public DiagnosticoCriteria(PersistentSession session) {
		this(session.createCriteria(Diagnostico.class));
	}
	
	public DiagnosticoCriteria() throws PersistentException {
		this(orm.Taller21PersistentManager.instance().getSession());
	}
	
	public PacienteCriteria createPacientePa_id_pacienteCriteria() {
		return new PacienteCriteria(createCriteria("pacientePa_id_paciente"));
	}
	
	public Diagnostico uniqueDiagnostico() {
		return (Diagnostico) super.uniqueResult();
	}
	
	public Diagnostico[] listDiagnostico() {
		java.util.List list = super.list();
		return (Diagnostico[]) list.toArray(new Diagnostico[list.size()]);
	}
}

